package cn.wlbw.model;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author ok-fan
 * @since 2019-09-11
 */
@Table("sys_role_permission")
public class SysRolePermission{

    /**
     * 主键ID
     */
    @Id
    private Integer id;
    /**
     * 角色ID
     */
    @Column("role_id")
    private Integer roleId;
    /**
     * 资源ID
     */
    @Column("permission_id")
    private Integer permissionId;
    /**
     * 路径
     */
    @Column
    private String url;
    /**
     * 编码
     */
    @Column
    private String code;
    /**
     * 创建人
     */
    @Column("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @Column("create_time")
    private Date createTime;
    /**
     * 更新人
     */
    @Column("update_user")
    private String updateUser;
    /**
     * 更新时间
     */
    @Column("update_time")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
